/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package escr.persistencia;

import java.io.Serializable;
import java.util.Collection;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 *
 * @author Aditardo
 */
@Entity
@Table(name = "horario")
@NamedQueries({@NamedQuery(name = "Horario.findByHorId", query = "SELECT h FROM Horario h WHERE h.horId = :horId"), @NamedQuery(name = "Horario.findByHorIniLu", query = "SELECT h FROM Horario h WHERE h.horIniLu = :horIniLu"), @NamedQuery(name = "Horario.findByHorIniMa", query = "SELECT h FROM Horario h WHERE h.horIniMa = :horIniMa"), @NamedQuery(name = "Horario.findByHorIniMi", query = "SELECT h FROM Horario h WHERE h.horIniMi = :horIniMi"), @NamedQuery(name = "Horario.findByHorIniJu", query = "SELECT h FROM Horario h WHERE h.horIniJu = :horIniJu"), @NamedQuery(name = "Horario.findByHorIniVi", query = "SELECT h FROM Horario h WHERE h.horIniVi = :horIniVi"), @NamedQuery(name = "Horario.findByHorIniSa", query = "SELECT h FROM Horario h WHERE h.horIniSa = :horIniSa"), @NamedQuery(name = "Horario.findByHorIniDo", query = "SELECT h FROM Horario h WHERE h.horIniDo = :horIniDo"), @NamedQuery(name = "Horario.findByHorFinLu", query = "SELECT h FROM Horario h WHERE h.horFinLu = :horFinLu"), @NamedQuery(name = "Horario.findByHorFinMa", query = "SELECT h FROM Horario h WHERE h.horFinMa = :horFinMa"), @NamedQuery(name = "Horario.findByHorFinMi", query = "SELECT h FROM Horario h WHERE h.horFinMi = :horFinMi"), @NamedQuery(name = "Horario.findByHorFinJu", query = "SELECT h FROM Horario h WHERE h.horFinJu = :horFinJu"), @NamedQuery(name = "Horario.findByHorFinVi", query = "SELECT h FROM Horario h WHERE h.horFinVi = :horFinVi"), @NamedQuery(name = "Horario.findByHorFinSa", query = "SELECT h FROM Horario h WHERE h.horFinSa = :horFinSa"), @NamedQuery(name = "Horario.findByHorFinDo", query = "SELECT h FROM Horario h WHERE h.horFinDo = :horFinDo"), @NamedQuery(name = "Horario.findByHorLu", query = "SELECT h FROM Horario h WHERE h.horLu = :horLu"), @NamedQuery(name = "Horario.findByHorMa", query = "SELECT h FROM Horario h WHERE h.horMa = :horMa"), @NamedQuery(name = "Horario.findByHorMi", query = "SELECT h FROM Horario h WHERE h.horMi = :horMi"), @NamedQuery(name = "Horario.findByHorJu", query = "SELECT h FROM Horario h WHERE h.horJu = :horJu"), @NamedQuery(name = "Horario.findByHorVi", query = "SELECT h FROM Horario h WHERE h.horVi = :horVi"), @NamedQuery(name = "Horario.findByHorSa", query = "SELECT h FROM Horario h WHERE h.horSa = :horSa"), @NamedQuery(name = "Horario.findByHorDo", query = "SELECT h FROM Horario h WHERE h.horDo = :horDo"), @NamedQuery(name = "Horario.findByHorFecha", query = "SELECT h FROM Horario h WHERE h.horFecha = :horFecha"), @NamedQuery(name = "Horario.findByHorHorario", query = "SELECT h FROM Horario h WHERE h.horHorario = :horHorario"), @NamedQuery(name = "Horario.findByHorRefencia", query = "SELECT h FROM Horario h WHERE h.horRefencia = :horRefencia")})
public class Horario implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @Column(name = "HOR_ID", nullable = false)
    private Integer horId;
    @Column(name = "HOR_INI_LU")
    private String horIniLu;
    @Column(name = "HOR_INI_MA")
    private String horIniMa;
    @Column(name = "HOR_INI_MI")
    private String horIniMi;
    @Column(name = "HOR_INI_JU")
    private String horIniJu;
    @Column(name = "HOR_INI_VI")
    private String horIniVi;
    @Column(name = "HOR_INI_SA")
    private String horIniSa;
    @Column(name = "HOR_INI_DO")
    private String horIniDo;
    @Column(name = "HOR_FIN_LU")
    private String horFinLu;
    @Column(name = "HOR_FIN_MA")
    private String horFinMa;
    @Column(name = "HOR_FIN_MI")
    private String horFinMi;
    @Column(name = "HOR_FIN_JU")
    private String horFinJu;
    @Column(name = "HOR_FIN_VI")
    private String horFinVi;
    @Column(name = "HOR_FIN_SA")
    private String horFinSa;
    @Column(name = "HOR_FIN_DO")
    private String horFinDo;
    @Column(name = "HOR_LU")
    private String horLu;
    @Column(name = "HOR_MA")
    private String horMa;
    @Column(name = "HOR_MI")
    private String horMi;
    @Column(name = "HOR_JU")
    private String horJu;
    @Column(name = "HOR_VI")
    private String horVi;
    @Column(name = "HOR_SA")
    private String horSa;
    @Column(name = "HOR_DO")
    private String horDo;
    @Column(name = "HOR_FECHA")
    @Temporal(TemporalType.DATE)
    private Date horFecha;
    @Column(name = "HOR_HORARIO")
    private String horHorario;
    @Column(name = "HOR_REFENCIA")
    private String horRefencia;
    @OneToMany(mappedBy = "horId")
    private Collection<Profesional> profesionalCollection;

    public Horario() {
    }

    public Horario(Integer horId) {
        this.horId = horId;
    }

    public Integer getHorId() {
        return horId;
    }

    public void setHorId(Integer horId) {
        this.horId = horId;
    }

    public String getHorIniLu() {
        return horIniLu;
    }

    public void setHorIniLu(String horIniLu) {
        this.horIniLu = horIniLu;
    }

    public String getHorIniMa() {
        return horIniMa;
    }

    public void setHorIniMa(String horIniMa) {
        this.horIniMa = horIniMa;
    }

    public String getHorIniMi() {
        return horIniMi;
    }

    public void setHorIniMi(String horIniMi) {
        this.horIniMi = horIniMi;
    }

    public String getHorIniJu() {
        return horIniJu;
    }

    public void setHorIniJu(String horIniJu) {
        this.horIniJu = horIniJu;
    }

    public String getHorIniVi() {
        return horIniVi;
    }

    public void setHorIniVi(String horIniVi) {
        this.horIniVi = horIniVi;
    }

    public String getHorIniSa() {
        return horIniSa;
    }

    public void setHorIniSa(String horIniSa) {
        this.horIniSa = horIniSa;
    }

    public String getHorIniDo() {
        return horIniDo;
    }

    public void setHorIniDo(String horIniDo) {
        this.horIniDo = horIniDo;
    }

    public String getHorFinLu() {
        return horFinLu;
    }

    public void setHorFinLu(String horFinLu) {
        this.horFinLu = horFinLu;
    }

    public String getHorFinMa() {
        return horFinMa;
    }

    public void setHorFinMa(String horFinMa) {
        this.horFinMa = horFinMa;
    }

    public String getHorFinMi() {
        return horFinMi;
    }

    public void setHorFinMi(String horFinMi) {
        this.horFinMi = horFinMi;
    }

    public String getHorFinJu() {
        return horFinJu;
    }

    public void setHorFinJu(String horFinJu) {
        this.horFinJu = horFinJu;
    }

    public String getHorFinVi() {
        return horFinVi;
    }

    public void setHorFinVi(String horFinVi) {
        this.horFinVi = horFinVi;
    }

    public String getHorFinSa() {
        return horFinSa;
    }

    public void setHorFinSa(String horFinSa) {
        this.horFinSa = horFinSa;
    }

    public String getHorFinDo() {
        return horFinDo;
    }

    public void setHorFinDo(String horFinDo) {
        this.horFinDo = horFinDo;
    }

    public String getHorLu() {
        return horLu;
    }

    public void setHorLu(String horLu) {
        this.horLu = horLu;
    }

    public String getHorMa() {
        return horMa;
    }

    public void setHorMa(String horMa) {
        this.horMa = horMa;
    }

    public String getHorMi() {
        return horMi;
    }

    public void setHorMi(String horMi) {
        this.horMi = horMi;
    }

    public String getHorJu() {
        return horJu;
    }

    public void setHorJu(String horJu) {
        this.horJu = horJu;
    }

    public String getHorVi() {
        return horVi;
    }

    public void setHorVi(String horVi) {
        this.horVi = horVi;
    }

    public String getHorSa() {
        return horSa;
    }

    public void setHorSa(String horSa) {
        this.horSa = horSa;
    }

    public String getHorDo() {
        return horDo;
    }

    public void setHorDo(String horDo) {
        this.horDo = horDo;
    }

    public Date getHorFecha() {
        return horFecha;
    }

    public void setHorFecha(Date horFecha) {
        this.horFecha = horFecha;
    }

    public String getHorHorario() {
        return horHorario;
    }

    public void setHorHorario(String horHorario) {
        this.horHorario = horHorario;
    }

    public String getHorRefencia() {
        return horRefencia;
    }

    public void setHorRefencia(String horRefencia) {
        this.horRefencia = horRefencia;
    }

    public Collection<Profesional> getProfesionalCollection() {
        return profesionalCollection;
    }

    public void setProfesionalCollection(Collection<Profesional> profesionalCollection) {
        this.profesionalCollection = profesionalCollection;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (horId != null ? horId.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof Horario)) {
            return false;
        }
        Horario other = (Horario) object;
        if ((this.horId == null && other.horId != null) || (this.horId != null && !this.horId.equals(other.horId))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "escr.persistencia.Horario[horId=" + horId + "]";
    }

}
